import request from '@/utils/request'
import data from "../../views/system/dict/data";

// 查询工作交接单列表
export function listOrder(query) {
  return request({
    url: '/handover/order/list',
    method: 'get',
    params: query
  })
}

// 查询工作交接单详细
export function getOrder(id) {
  return request({
    url: '/handover/order/' + id,
    method: 'get',
    params: query
  })
}

// 新增工作交接单
export function addOrder(data) {
  return request({
    url: '/handover/order',
    method: 'post',
    data: data
  })
}

// 修改工作交接单
export function updateOrder(data) {
  return request({
    url: '/handover/order',
    method: 'put',
    data: data
  })
}

// 删除工作交接单
export function delOrder(id) {
  return request({
    url: '/handover/order/' + id,
    method: 'delete'
  })
}

// 导出工作交接单
export function exportOrder(query) {
  return request({
    url: '/handover/order/export',
    method: 'get',
    params: query
  })
}

// 查询交接信息
export function getHandoverInfo(query) {
  return request({
    url: '/handover/order/getToUser',
    method: 'get',
    params: query
  })

}


//  查询客户信息列表
export function getCustomerVolist(query) {
  return request({
    url: '/customer/vo/list',
    method:'get',
    params: query
  })
}

//查询客户详细信息
export function getCustomerVoBySeller(guid){
  return request({
    url: '/customer/vo/' + guid,
    method:'get',
  })
}


//修改客户信息表
export function updateCustomerVo(date) {
  return request({
    url:'/customer/vo',
    method:'put',
    data:data
  })
}

// //删除客户信息表
// export function deletevo(id) {
//   return request({
//     url:'/customer/vo/' + id,
//     method:'delete',
//   })
// }

